commit - c0bb37282f6051d91e6628b4e901c46ac481a57f
commit + 2be9c652b5eef11859a57d0ef2251ce1e20c5582
blob - 0a163b47d7b39e48e6b517fa7dbe5a04c045574d
blob + 22d68be13129a32b345f875a1796a05099dc9899
--- README.md
+++ README.md
Для указания publisher в статье укажите publisher в Params страницы, либо в настройках сайта.
## Shortcodes
+### include
+Позволяет [вставить](https://gohugo.io/render-hooks/blockquotes/#pageinner-details) другой markdown файл в текущий.
+Полезно при разделении частей страницы на несколько файлов.
+
### details
Корректный details, позволяющий рендерить html.
blob - /dev/null
blob + f80d174025572292e61a119d8d5e83d3ef759afd (mode 644)
--- /dev/null
+++ layouts/_shortcodes/include.html
+{{ with .Get 0 }}
+ {{ with $.Page.GetPage . }}
+ {{- .RenderShortcodes }}
+ {{ else }}
+ {{ errorf "The %q shortcode was unable to find %q. See %s" $.Name . $.Position }}
+ {{ end }}
+{{ else }}
+ {{ errorf "The %q shortcode requires a positional parameter indicating the logical path of the file to include. See %s" .Name .Position }}
+{{ end }}